﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Contributor.Data_Objects
{
    public class Note
    {
        public int NoteId { get; set; }
        public string NoteText { get; set; }
        public DateTime NoteDate { get; set; }
        public string UserName { get; set; }

        public static List<Note> LoadForEntity(int entityId)
        {
            string cmdStr = string.Format("SELECT * FROM dbo_Note WHERE EntityId={0}", entityId);
            return DbSupportLib.Support.QueryToList(new List<Note>(), AppConfig.DbConnection, System.Data.CommandType.Text, cmdStr);
        }
    }
}
